<?php
function V_AdvertiseList(&$arrayData,&$cat_id){
	$ulr = "?".MODUL."=quangcao&".ACTION."=";
		
?>

<form name="search1" action="<?=$ulr?>list"  method="post" >

</form>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="2" height="5"></td></tr>
<?
	//=======================================================================================
		foreach($arrayData as $row)
		{
	?>
  <tr>
    <td valign="top" align="center">
		<?
			if($row["link"]!=""){
		?>
		 <a  href="<? echo $row['link'];?>" target="_blank">
		 	<img src="<?=DIR_IMAGES_VIEW?><? echo $row['anh_dai_dien']; ?>"  width="130"  border=0 title="<?=$row['ten_doi_tac']?>" >
		</a>
		<?
			}else{
		?>
			<img src="<?=DIR_IMAGES_VIEW?><? echo $row['anh_dai_dien']; ?>"  width="130" border=0 title="<?=$row['ten_doi_tac']?>" >
		<?
			}
		?>
	</td>
  </tr>
  <tr><td><table border="0" bordercolor="#FFFFFF" width="100%">
    <tr><td></td></tr></table></td></tr>
	 <?
		} // end foreach($arrayData as $row)
?>

</table>

<?php
}
?>